const app = getApp()
Page({
  data:{
      goods:'',
    resourceUrl: app.globalData.apiUrl + '/public/uploads/goods/',
  },
  onLoad:function (options){
      console.log(options)
      var that = this;
      wx.request({
        url: app.globalData.apiUrl+'/api/order/orderInfo',
        data: {id:options.id},
        method: 'GET',
        dataType: 'json',
        success: function(res) {
          console.log(res.data)
          that.setData({info:res.data,goods:JSON.parse(res.data.goods_info)})
          // console.log(res.data.goods_info)
        },
        fail: function(res) {},
        complete: function(res) {},
      })
  }
})